package com.hai.bean;

import java.io.Serializable;

public class Information implements Serializable{
	private String fromIP;
	private int fromPort;
	private int fromUId;
	
	private String toIP;
	private int toPort;
	private int toUId;
	
	private String content;

	public Information(int UID,String FIP,int FPort,String content){
		this.fromUId=UID;
		this.fromIP=FIP;
		this.fromPort=FPort;
		this.content=content;
	}
	
	public Information(int UID,String FIP,int FPort,String content,String tIP,int tPort,int tUID){
		this.fromUId=UID;
		this.fromIP=FIP;
		this.fromPort=FPort;
		this.content=content;
		this.toIP=tIP;
		this.toPort=tPort;
		this.toUId=tUID;
	}
	
	public String getFromIP() {
		return fromIP;
	}

	public void setFromIP(String fromIP) {
		this.fromIP = fromIP;
	}

	public int getFromPort() {
		return fromPort;
	}

	public void setFromPort(int fromPort) {
		this.fromPort = fromPort;
	}

	public int getFromUId() {
		return fromUId;
	}

	public void setFromUId(int fromUId) {
		this.fromUId = fromUId;
	}

	public String getToIP() {
		return toIP;
	}

	public void setToIP(String toIP) {
		this.toIP = toIP;
	}

	public int getToPort() {
		return toPort;
	}

	public void setToPort(int toPort) {
		this.toPort = toPort;
	}

	public int getToUId() {
		return toUId;
	}

	public void setToUId(int toUId) {
		this.toUId = toUId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
}
